package com.wen.controller;

import com.wen.service.StoreService;
import com.wen.utils.Result;
import com.wen.vo.StoreCountVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class StoreContoller {

    @Autowired
    private StoreService storeService;

    @RequestMapping("/statistics/store-invent")
    public Result storeInvent(){
        List<StoreCountVo> storeCount = storeService.findStoreCount();
        return  Result.ok(200,"成功",storeCount);
    }
}
